package xyz.ddlnt.serviceusrclient.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.ddlnt.commonutil.result.Result;
import xyz.ddlnt.model.vo.TechnologyInfoVO;

import java.util.List;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/11 1:21
 */
//@FeignClient(name = "service-usr", url = "http://yixuewang-service-usr:9015", path = "/technology")
//@FeignClient(name = "service-usr", url = "http://localhost:9005", path = "/technology")
@FeignClient(value = "service-usr", path = "/technology")
public interface TechnologyFeignClient {
    /**
     * 根据类别id查询类别下所有科目信息
     * @param categoryId
     * @return
     */
    @GetMapping("/selectByCategoryId")
    Result<List<TechnologyInfoVO>> selectByCategoryId(@RequestParam Long categoryId);

    /**
     * 根据科目id查询科目信息
     * @param technologyId
     * @return
     */
    @GetMapping("/selectByTechnologyId")
    Result<TechnologyInfoVO> selectByTechnologyId(@RequestParam Long technologyId);
}
